﻿using System;
using System.Collections.Generic;
using System.Text;
using IService.DataDLL;
using System.Data.OleDb;

namespace IService.Model
{
	[Table("News", "ID")]
	public class News : DTVBaseObject
	{
		//所属类别
		private int newstypeid;
		//发布人
		private string publishman;
		//最后修改时间
		private DateTime modifyTime;
		//新闻题目
		private string newstitle;
		//新闻内容
		private string newscontent;
		//新闻图片
		private string articlepic;
		private bool showwebsite;

		[Property("NewsTypeId", OleDbType.Integer, false, false)]
		public int NewsTypeId
		{
			get { return newstypeid; }
			set { newstypeid = value; }
		}

		[Property("PublishMan", OleDbType.VarChar, false, false)]
		public string PublishMan
		{
			get { return publishman; }
			set { publishman = value; }
		}

		[Property("ModifyTime", OleDbType.Date, false, false)]
		public DateTime ModifyTime
		{
			get { return modifyTime; }
			set { modifyTime = value; }
		}

		[Property("NewsTitle", OleDbType.VarChar, false, false)]
		public string NewsTitle
		{
			get { return newstitle; }
			set { newstitle = value; }
		}

		[Property("NewsContent", OleDbType.VarChar, false, false)]
		public string NewsContent
		{
			get { return newscontent; }
			set { newscontent = value; }
		}

		[Property("ArticlePic", OleDbType.VarChar, false, false)]
		public string ArticlePic
		{
			get { return articlepic; }
			set { articlepic = value; }
		}

		[Property("ShowWebsite", OleDbType.Boolean, false, false)]
		public bool ShowWebsite
		{
			get { return showwebsite; }
			set { showwebsite = value; }
		}

		[Property("CreateTime", OleDbType.Date, false, false)]
		public DateTime CreateTime { get; set; }
	}
}
